package main

import "fmt"

type A struct {
	F1 string
}
type B struct {
	A
	F1 string
}

func main() {
	hanoi(4,"A","B","C")
}
func hanoi(n int, A,B, C string) {
	if n > 0 {
		hanoi(n-1,A,C,B)
		fmt.Printf("moving from %s to %s \n",A,C)
		hanoi(n-1,B,A,C)
	}
}
